package com.zeus.base.smscenter.service;

import com.zeus.base.privilege.utils.ResultModel;
import com.zeus.base.smscenter.model.SmsSupplier;
import com.zeus.base.smscenter.service.common.IBaseService;
/**
 * 短信设定service
 */
public interface ISupplierService extends IBaseService<SmsSupplier>{
    /**
     * 验证企业短信设定是否存在
     * @return
     */
    ResultModel exists(SmsSupplier entity);

    /**
     * 获取单条数据
     *
     * @param id
     * @return
     */
    SmsSupplier selectByPrimaryKey(String id);

    /**
     * 获取单条数据
     *
     * @param code
     * @return
     */
    SmsSupplier selectByCode(String code);


    /**
     * 获取供应商信息(租户code,供应商,平台)
     *
     * @param smsSupplier

     * @return
     */
    SmsSupplier existByCodeSuppNoAppForm(SmsSupplier smsSupplier);

    /**
     * 根据ids批量删除
     */
    ResultModel batchDelete(String[] keyIds);

    /**
     * 根据id删除
     */
    ResultModel deleteByKeyId(String keyId);

    /**
     * 根据id删除
     */
    ResultModel deleteByTenantCode(SmsSupplier smsSupplier);

}
